/*
 * @Author: your name
 * @Date: 2019-11-28 17:46:20
 * @LastEditTime: 2019-11-28 17:59:05
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \web\avue-cli\src\api\sysSetup\laboratory.js
 */
import request from "@/router/axios";
import qs from "qs";
/**
 * @description: 实验室条件分页查询
 * @param {object}
 * @return: promise
 */
export const getLaboratoryList = (data = {}) =>
  request({
    url: "/laboratory/v1/pageQuery",
    method: "post",
    data: qs.stringify(data)
  });

/**
 * @description: 实验室列表项修改
 * @param {object}
 * @return: promise
 */
export const updateLaboratory = (data = {}) =>
  request({
    url: "/laboratory/v1/update",
    method: "post",
    data: qs.stringify(data)
  });

/**
 * @description: 实验室新增
 * @param {object}
 * @return: promise
 */
export const addLaboratory = (data = {}) =>
  request({
    url: "/laboratory/v1/insert",
    method: "post",
    data: qs.stringify(data)
  });

/**
 * @description: 实验室列表项删除
 * @param {object}
 * @return: promise
 */
export const deleteLaboratory = (data = {}) =>
  request({
    url: "/laboratory/v1/getById",
    method: "post",
    data: qs.stringify(data)
  });